package com.sd.servlet;
import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.*;

public class Life1 extends HttpServlet{
	
	public Life1(){
		System.out.println("object is created .......");
	}
	public void init(ServletConfig config){
		System.out.println("I am from init(-)......");
	}
	
	
public void service(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException{
		PrintWriter out=res.getWriter();
		System.out.println("I am from service(-).....");
	}
	
	
	public void destroy(){
		System.out.println("I am from destroy(-).....");
	}
	//@Override
	//public void service(ServletRequest arg0, ServletResponse arg1)
		//	throws ServletException, IOException {
		// TODO Auto-generated method stub
	//}
	
}
